package com.synergy.stockflow.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "warehouse")
public class Warehouse {
    /**
     * 仓库ID
     */
    @TableId(value = "warehouse_id", type = IdType.ASSIGN_ID)
    @Schema(description = "仓库ID")
    private String warehouseId;

    /**
     * 仓库名称
     */
    @TableField(value = "warehouse_name")
    @Schema(description = "仓库名称")
    private String warehouseName;

    /**
     * 仓库类型
     */
    @TableField(value = "warehouse_type")
    @Schema(description = "仓库类型")
    private String warehouseType;

    /**
     * 主管ID
     */
    @TableField(value = "manager_id")
    @Schema(description = "主管ID")
    private String managerId;

    /**
     * 主管电话
     */
    @TableField(value = "manager_phone")
    @Schema(description = "主管电话")
    private String managerPhone;

    /**
     * 地址
     */
    @TableField(value = "address")
    @Schema(description = "地址")
    private String address;

    /**
     * 是否启用(1=是, 0=否)
     */
    @TableField(value = "is_enabled")
    @Schema(description = "是否启用(1=是, 0=否)")
    private Boolean  isEnabled;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private Date updateTime;
}